﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="ApplyInvoiceSearch.aspx.cs" Inherits="Ankin.EHBH.Web.Modules.Apply.ApplyInvoiceSearch" Title="医用耗材管理系统" %>

<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cphcenter" runat="server">
 <script language="javascript" type="text/javascript" src="../../Public/My97DatePicker/WdatePicker.js"></script>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td class="right-color">请领管理-请领审核</td>
        </tr>
    </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
        <tr>
            <td class="bor bor-bg">请领单查询条件</td>
        </tr>
        <tr>
            <td class="bor">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="t1">
                    <tr>
                        <td align="right">申请单号：</td>
                        <td><asp:TextBox ID="TxtApply_Id" runat="server" Width="170"></asp:TextBox></td>
                        <td align="right">申请日期：</td>
                        <td>
                        <input id="apply_date_ahead" type="text" onClick="WdatePicker()" runat="server" style="width: 170px"/>
                       <%-- <mc:DropDownCalendar ID="apply_date_ahead" runat="server" BackColor="White"
                                      BorderColor="ButtonFace" BorderStyle="Inset" BorderWidth="2px" Height="1px" Width="185px">
                                      <WeekendDayStyle BackColor="#C0FFFF" ForeColor="Brown" />
                                      <TitleStyle BackColor="#C00000" ForeColor="White" />
                                      <DayHeaderStyle BackColor="#C0C0FF" />
                                      <DateStyle BackColor="#FFFFC0" />
                                  </mc:DropDownCalendar>--%>
                            </td>
                        <td align="center">～</td>
                        <td>
                        <input id="apply_date_down" type="text" onClick="WdatePicker()" runat="server" style="width: 170px"/>
                        <%--<mc:DropDownCalendar ID="apply_date_down" runat="server" BackColor="White"
                                      BorderColor="ButtonFace" BorderStyle="Inset" BorderWidth="2px" Height="1px" Width="185px">
                                      <WeekendDayStyle BackColor="#C0FFFF" ForeColor="Brown" />
                                      <TitleStyle BackColor="#C00000" ForeColor="White" />
                                      <DayHeaderStyle BackColor="#C0C0FF" />
                                      <DateStyle BackColor="#FFFFC0" />
                                  </mc:DropDownCalendar>--%>
                            </td>
                    </tr>
                    <tr>
                        <td  align="right">申请分类：</td>
<%--                        <td style="height: 45px">
                            <asp:DropDownList ID="ddlIn_Class" runat="server">
                            </asp:DropDownList>
                            <anthem:TextBox AutoCallBack="true" runat="server" ID="TextBox3" OnTextChanged="tcxfda_TextChanged" /></td>--%>
                        <td>
                            <asp:DropDownList ID="DrDown_appclass" runat="server" Width="175">
                            </asp:DropDownList></td>
                        <td align="right">申请单位：</td>
                            <td>
                                <asp:DropDownList ID="DropDown_AppDept" runat="server" Width="175">
                                </asp:DropDownList></td>
                        <td align="right">申请人：</td>
                        <td>
                        <asp:TextBox ID="Txt_Applyer" runat="server" Width="170"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td  align="right">消耗品名称：</td>
                        <td ><asp:TextBox ID="TXT_EXPNAME" runat="server" Width="170"></asp:TextBox></td>
                        <td  align="right">规格型号：</td>
                        <td>
                            <asp:DropDownList ID="drlist_specs" runat="server" Width="175">
                            </asp:DropDownList></td>
                        <td align="right">消耗品代码：</td>
                        <td ><asp:TextBox ID="Text_ExpCode" runat="server" Width="170"></asp:TextBox>
                    </tr>
                    <tr>
                        <td align="right">请领状态：</td>
                        <td colspan="4">
                            <asp:DropDownList ID="ddlApplyStatus" runat="server" Width="175">
                            </asp:DropDownList></td>
                            <td>
                                <asp:Button ID="Button1" runat="server" Text="查询" OnClick="ButtonSearch_ServerClick" CssClass="button" />
                            <%--<input type="button" value="查询" id="ButtonSearch" onserverclick="ButtonSearch_ServerClick" runat="server" class="button" style="width:57px; height:25px; cursor:pointer;" />--%></td>
                    </tr>
                </table>
            </td>
        </tr>
       </table>
       
       <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-top:14px;">
        <tr>
            <td class="bor bor-bg"> 申请单列表</td>
        </tr>
        <tr>
            <td style="padding:13px;" class="bor">
                            <asp:GridView ID="GridView_Apply" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True" OnPageIndexChanging="GridView_Apply_PageIndexChanging">
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                              <RowStyle CssClass="gv-first-line"/>
                               <EmptyDataTemplate>
                                    <table width="100%" height="100">
                                        
                                        <tr>
                                            <td align="center" class="jg">
                                                对不起，没有找到任何相关记录
                                            </td>
                                        </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <Columns>
                                    <asp:BoundField DataField="BILL_OUT_ID" HeaderText="出库单号" />
                                    <asp:BoundField DataField="OUT_DATE" HeaderText="出库时间" />
                                    <asp:BoundField DataField="BILL_ID" HeaderText="请领单号" />
                                    <asp:BoundField DataField="APPLY_DATE" HeaderText="请领时间" />
                                    <asp:BoundField DataField="DEPT_NAME" HeaderText="请领部门" />
                                    <asp:BoundField DataField="user_name" HeaderText="请领人" />
                                    <asp:BoundField DataField="Status" HeaderText="状态" />
                                    <asp:BoundField DataField="apply_type" HeaderText="请领类型" />
                                    <asp:TemplateField HeaderText="详细">
                                      <ItemTemplate>
                                        <table width="57" border="0" cellspacing="0" cellpadding="0" align="center">
                                          <tr>
                                            <td height="25" align="center" class="button" style="padding-top:2px;"><a href="<%#Eval("BILL_ID","NetApplyDetail.aspx?RT_PARA_APPLY_ID={0}") %>">详细</a></td>
                                          </tr>
                                        </table>
                                    </ItemTemplate>
                                      </asp:TemplateField>
                                </Columns>
                                 <PagerStyle CssClass="fy" />
                                  <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="Black" />
                                  <HeaderStyle  CssClass="gv-head" />
                                  <EditRowStyle BackColor="Black" />
                                  <AlternatingRowStyle BackColor="White" />
                                  <PagerSettings Mode="NumericFirstLast" FirstPageText="首页" LastPageText="末页"/>
                            </asp:GridView>
            </td>
        </tr>
    </table>
    <div id="popupContact">
        <input name="" id="btnClosePop" type="button" value="关闭按钮" />
    </div>
    <div id="backgroundPopup">
    
    </div>
</asp:Content>